package com.example.takeaway.serivce;

import com.example.takeaway.entity.Comments;
import com.example.takeaway.utils.PageResult;

import java.util.List;


/**
 * commentService接口
 * 
 * @author ruoyi
 * @date 2025-06-02
 */
public interface ICommentsService 
{
    /**
     * 查询comment
     * 
     * @param commentsid comment主键
     * @return comment
     */
    public Comments selectCommentsByCommentsid(Long commentsid);

    /**
     * 查询comment列表
     * 
     * @param comments comment
     * @return comment集合
     */
    public PageResult selectCommentsList(Comments comments, int pageNum, int pageSize);

    /**
     * 新增comment
     * 
     * @param comments comment
     * @return 结果
     */
    public int insertComments(Comments comments);

    /**
     * 修改comment
     * 
     * @param comments comment
     * @return 结果
     */
    public int updateComments(Comments comments);

    /**
     * 批量删除comment
     * 
     * @param commentsids 需要删除的comment主键集合
     * @return 结果
     */
    public int deleteCommentsByCommentsids(Long[] commentsids);

    /**
     * 删除comment信息
     * 
     * @param commentsid comment主键
     * @return 结果
     */
    public int deleteCommentsByCommentsid(Long commentsid);
}
